package pe.edu.upc.dsd.l33t.util;

import java.util.List;

import pe.edu.upc.dsd.l33t.model.Book;

public class Util {

	public static final String SESSION_SHOPPING_CART = "shoppingCart";
	
	public static double getTotalPrice(List<Book> lstBook){
		double total = 0;
		for (Book book : lstBook) {
			total += book.getPrice() * book.getQuantity();
		}
		
		return total;
	}
	
}
